home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c,comp.unix.misc,comp.unix.questions,harvard.comp.unix
- Subject: Re: Trap interrupts in C program
- Date: Tue, 23 Jan 1996 15:19:38 +0200
- Organization: Carelcomp Forest
- Message-ID: <3104E06A.861@cmt.lpr.mail.carel.fi>
- References: <4e1mos$8jn@decaxp.harvard.edu>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- Shaikh Sarmad wrote:
- >
- > I want to write a C program that can should ignore all signals (except
- > the kill, of course). How do I incorporate that in my program. I mean is
- > there a "trap" command for C, like in shell scripts? And yes, the C
- > program would be running on an HP-UX system.
- >
-
- Look at your manuals (or use man) for functions called `signal┤, `sigaction┤
- etc. They're just what you're looking for.
-
- Later,
- AriL
-
- --
- All my opinions are mine and mine alone.
-